#ifndef DARK_BLIT_H_
#define DARK_BLIT_H_

#include <allegro.h>

/*
 * Like Allegro's masked_blit. Scales all non-transparent pixels by the
 * factor given in the darkness parameter. Given a darkness of 192, the
 * source is drawn onto the destination with 1/4 its normal brightness.
 * This function does clipping on the dest bitmap but not the source!
 */
void dark_blit (BITMAP *source, BITMAP *dest, int source_x, int source_y, 
                       int dest_x, int dest_y, int width, int height,
                       int darkness);

#endif /* DARK_BLIT_H_ */
